.inspiration-conyainer {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 24px;
  position: relative;
  transition: width .2s;
  border-radius: 8px;
  .inspiratio-tag {
    width: 16px;
    height: 42px;
    background-color: #ffffff;
    cursor: pointer;
    position: absolute;
    top: calc(50% - 21px);
    left: -16px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 18px;
      height: 18px;
      transform: rotate(180deg);
      transition: .1s;
    }

    .img-trans {
      transform: rotate(0deg);
    }
  }
  .right-content {
    height: 100%;
    .title {
      font-weight: 600;
      color: #252B3A;
      font-size: 20px;
      margin-bottom: 8px;
      line-height: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .title-icon {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        img {
          width: 16px;
          height: 16px;
          margin-left: 8px;
          cursor: pointer;
        }
        .inspiration-text {
          width: 120px;
          font-size: 16px;
          font-weight: 700;
          display: flex;
          align-items: center;
        }
      }
    }
    .has-drop {
      button {
        border-radius: 4px;
        border: none;
      }
    }
    .prompt-empty {
      text-align: center;
      color: #71757F;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      height: 80%;
      margin-top: 0;
      .empty-text {
        width: 100%;
        margin-top: 20px;
      }
    }
    .btn-text {
      font-size: 12px;
      max-width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: middle;
      margin-top: -2px;
    }
  }
  .prompt-type {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 16px;
    .prompt-type-item {
      margin-right: 12px;
      height: 32px;
      line-height: 30px;
      color: #666666;
      font-size: 12px;
      cursor: pointer;
      text-align: center;
      display: flex;
      align-items: center;
      .text {
        display: inline-block;
        width: 42px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-bottom: 1px solid transparent;
      }
      .line {
        display: inline-block;
        width: 1px;
        height: 10px;
        background: #D9D9D9;
        margin-left: 16px;
      }
      &:last-child {
        .line {
          width: 0;
        }
      }
    }
    .prompt-type-active {
      .text {
        color: #0478fc;
      }
    }
  }
  .prompt-type-more-container {
    position: relative;
    align-items: center;
    display: flex;
    .prompt-type-more-svg {
      transform: rotate(180deg);
    }
    .prompt-type-more {
      box-shadow: 0 4px 16px 0 rgba(37, 43, 58, 0.2);
      border: 1px solid #F7F7F7;
      border-radius: 6px;
      padding: 12px 8px;
      background-color: #ffffff;
      z-index: 999;
      position: absolute;
      right: -10px;
      top: 40px;
      width: 310px;
      .prompt-type-more-search {
        margin-bottom: 10px;
      }
      .prompt-type-more-select-container {
        max-height: 400px;
        overflow: auto;
        .prompt-type-more-select {
          padding: 12px 16px;
          cursor: pointer;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          &:hover {
            background-color: #F7F7F7;
          }
        }
        .active {
          background-color: #F2F7FD;
          color: #5B95EC;
        }
      }
    }
  }
  .prompt-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    flex-grow: 1;
    overflow: auto;
    .prompt-item {
      width: 150px;
      margin-bottom: 8px;
      padding: 12px;
      overflow: auto;
      background-color: #ffffff;
      // border: 1px solid #00000021;
      border-radius: 8px;
      cursor: pointer;
      position: relative;
      .title {
        display: -webkit-box;
        font-weight: normal;
        font-size: 14px;
        line-height: 22px;
        color: #252B3A;
        margin-bottom: 8px;
        word-break: break-all;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .content {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        color: #71757F;
        font-size: 12px;
        line-height: 20px;
        word-break: break-all;
      }
      .prompt-operator {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
      }
      &:hover {
        border-color: #5e7ce0;
      }

      &:nth-child(odd) {
        margin-right: 8px;
      }
    }

    .prompt-active {
      color: #fff;
      background-color: #5e7ce0;
    }

    &::-webkit-scrollbar {
      width: 0 !important;
    }
  }
  .prompt-container {
    display: flex;
    flex-direction: column;
  }
}
.drop-tree-menu {
  font-weight: normal;
  font-size: 12px;
  width: 270px;
  max-height: 600px;
  overflow-y: auto;
  .ant-tree-title {
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
  }
}

.inspiration-active {
  background-color: #f4f9fd;
}

.form-item-btn {
  display: flex;
  justify-content: center;
}

.form-tip {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.list-menu {
  padding: 12px;
  margin: 0;
  width: 100px;
  list-style: disc;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(37, 43, 58, .24);

  .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    color: #252b3a;

    &:hover {
      background-color: #f2f2f3;
    }
  }
}

.list-item {
  padding-bottom: 10px;
  max-width: 240px;
  min-width: 180px;
  max-height: 600px;
  overflow: auto;

  .title {
    padding: 0 12px;
    margin: 6px 0;
    font-weight: 600;
  }
}

.list-pdu-menu {
  padding: 0;
  margin: 0;
  list-style: disc;

  .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    cursor: pointer;
    color: #252b3a;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    &:hover {
      background-color: #f2f2f3;
    }
  }

  .menu-active {
    color: #0478fc;
  }
}

.chat-promet-list {
  box-sizing: border-box;
  line-height: 1.42;
  height: 120px;
  width: 100%;
  border-radius: 4px;
  outline: none;
  overflow-y: auto;
  padding: 12px 6px;
  tab-size: 4;
  -moz-tab-size: 4;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #cccccc;

  .block-text {
    display: block;
  }

  .important-text {
    padding: 2px 8px;
    background-color: #e9edfa;
    border-radius: 5px;

    &:hover {
      background-color: #fff;
      border: 1px solid #0478fc;
    }

    &:focus {
      background-color: #fff;
      border: 1px solid #0478fc;
    }
  }

  .important-text.focus-text {
    background-color: #fff;
    border: 1px solid #0478fc;
  }

  .chat-inspiration-modal {
    display: inline-block !important;
    min-height: 22px;
    max-width: 200px;
    padding: 0 6px;
    margin: 0 4px;
    border-radius: 4px;
    line-height: 22px;
    background: #edf2fa;
    word-break: break-all;
    outline: none;
    position: relative;
    cursor: pointer;

    ul {
      max-width: 200px;
      max-height: 165px;
      overflow-y: scroll;
      display: none;
      padding: 6px 12px;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      line-height: 30px;
    }

    &::-webkit-scrollbar {
      width: 2px !important;
      height: 12px !important;
    }

    li {
      border-bottom: 1px solid #eee;
      color: #222;
      list-style: none;
      padding-left: 0 !important;
    }

    li:last-child {
      border: none;
    }
  }

  .chat-inspiration-modal {
    user-select: none;

    .chat-focus-delete {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      top: -4px;
      right: -4px;
      cursor: pointer;
      background-size: 100% 100%;
    }
  }
}

.drop-list {
  position: absolute;
  z-index: 3500;
  width: 240px;
  background-color: #ffffff;
  padding: 12px;
  padding-top: 8px;
  font-size: 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px 0 rgba(37, 43, 58, .24);
  color: #252B3A;

  .drop-list-content {
    max-height: 160px;
    overflow: auto;

    &::-webkit-scrollbar {
      width: 0;
    }

    .drop-list-item {
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #ebebeb;

      .item-left {
        width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .item-right {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          cursor: pointer;
          margin: 0 4px;
        }
      }

      &:last-child {
        border-bottom: none;
      }
    }
  }

  .drop-add {
    text-align: center;
    height: 34px;
    line-height: 34px;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    color: #0478fc;

    span {
      cursor: pointer;
    }
  }

  .drop-btn {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
}

.modal-head {
  font-weight: 700;
  font-size: 16px;
}

.modal-text {
  padding: 16px 0;
  font-size: 14px;
  line-height: 25px;
  word-break: break-all;
}

.modal-btn {
  display: flex;
  justify-content: center;
}
.chat-preview {
  .prompt-container {
    height: calc(100% - 70px);
  }
}
.chat-preview-inner {
  .prompt-container {
    height: calc(100% - 130px);
  }
}
.inspiration-popover {
  .ant-popover-arrow {
    display: none;
  }
}
.prompt-search {
  display: flex;
  align-items: center;
  .ant-btn {
    margin: 0;
    background-color: transparent !important;
    border: none;
  }
}
.ant-tree-node-selected {
  color: #0478fc !important;
  font-weight: 700;
}